<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>智慧社区后台</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/AdminLTE.min.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/plugins/bootstrap-table/css/bootstrap-table.css">
</head>
<style>
</style>
<body style="padding-bottom: 90px; background-color: #ECF0F5;">
	<section class="content" style="margin: 15px; background-color: white;">
		<div class="row">
			<div class="col-sm-12">
				<table id="table">
					<thead style="background-color: #00C0EF">
						<tr style="background-color: #00C0EF">
							<th class="text-center" data-field="account">梯控名称</th>
							<th class="text-center" data-field="name">在线否</th>
							<th class="text-center" data-field="sexName">所属主体</th>
							<th class="text-center" data-field="telephone">楼栋</th>
							<th class="text-center" data-field="telephone">单元</th>
							<th class="text-center" data-field="telephone">物联卡号</th>
							<th class="text-center" data-field="telephone">物联卡有效期</th>
							<th class="text-center" data-field="telephone">状态</th>
							<th class="text-center" data-field="telephone">操作</th>
						</tr>
					</thead>
				</table>
			</div>
		</div>
	</section>
</body>
<script src="${pageContext.request.contextPath}/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script src="${pageContext.request.contextPath}/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath}/plugins/bootstrap-table/js/bootstrap-table.js"></script>
<script src="${pageContext.request.contextPath}/plugins/bootstrap-table/js/bootstrap-table-zh-CN.js"></script>
<script src="${pageContext.request.contextPath}/plugins/bootstrap-table/js/bootstrap-table-export.js"></script>
<script src="${pageContext.request.contextPath}/plugins/bootstrap-table/js/tableExport.js"></script>
<script src="${pageContext.request.contextPath}/plugins/bootstrap-table/js/bootstrap-table-toolbar.js"></script>
<script src="${pageContext.request.contextPath}/plugins/bootstrap-table/js/bootstrap-table-filter-control.js"></script>
<script>
	function actionFormatter(value, row, index) {
		return [ "<button class='btn btn-primary btn-xs like'>选取</button>", "&nbsp;<button class='btn btn-default btn-xs unlike'>取消</button>", ].join('');
	}
	/* var table_dataset = [ {
		field : 'id',
		radio : true
	}, {
		title : 'id',
		field : 'id',
		visible : false,
		align : 'center',
	}, {
		title : '账号',
		field : 'account',
		align : 'center',
		valign : 'middle'
	}, {
		title : '姓名',
		field : 'name',
		align : 'center',
		valign : 'middle'
	}, {
		title : '性别',
		field : 'sexName',
		align : 'center',
		valign : 'middle'
	} ]
	var table_data = [ {
		"sexName" : "男",
		"name" : "david0",
		"id" : 1,
		"account" : "admin0",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david1",
		"id" : 1,
		"account" : "admin1",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david2",
		"id" : 1,
		"account" : "admin2",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david3",
		"id" : 1,
		"account" : "admin3",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david4",
		"id" : 1,
		"account" : "admin4",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david5",
		"id" : 1,
		"account" : "admin5",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david6",
		"id" : 1,
		"account" : "admin6",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david7",
		"id" : 1,
		"account" : "admin7",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david8",
		"id" : 1,
		"account" : "admin8",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david9",
		"id" : 1,
		"account" : "admin9",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david10",
		"id" : 1,
		"account" : "admin10",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david11",
		"id" : 1,
		"account" : "admin11",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david12",
		"id" : 1,
		"account" : "admin12",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david13",
		"id" : 1,
		"account" : "admin13",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david14",
		"id" : 1,
		"account" : "admin14",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david15",
		"id" : 1,
		"account" : "admin15",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david16",
		"id" : 1,
		"account" : "admin16",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david17",
		"id" : 1,
		"account" : "admin17",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david18",
		"id" : 1,
		"account" : "admin18",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david19",
		"id" : 1,
		"account" : "admin19",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david20",
		"id" : 1,
		"account" : "admin20",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david21",
		"id" : 1,
		"account" : "admin21",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david22",
		"id" : 1,
		"account" : "admin22",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david23",
		"id" : 1,
		"account" : "admin23",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david24",
		"id" : 1,
		"account" : "admin24",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david25",
		"id" : 1,
		"account" : "admin25",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david26",
		"id" : 1,
		"account" : "admin26",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david27",
		"id" : 1,
		"account" : "admin27",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david28",
		"id" : 1,
		"account" : "admin28",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david29",
		"id" : 1,
		"account" : "admin29",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david30",
		"id" : 1,
		"account" : "admin30",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david31",
		"id" : 1,
		"account" : "admin31",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david32",
		"id" : 1,
		"account" : "admin32",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david33",
		"id" : 1,
		"account" : "admin33",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david34",
		"id" : 1,
		"account" : "admin34",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david35",
		"id" : 1,
		"account" : "admin35",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david36",
		"id" : 1,
		"account" : "admin36",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david37",
		"id" : 1,
		"account" : "admin37",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david38",
		"id" : 1,
		"account" : "admin38",
		"age" : 18,
		telephone : 15527741593
	}, {
		"sexName" : "男",
		"name" : "david39",
		"id" : 1,
		"account" : "admin39",
		"age" : 18,
		telephone : 15527741593
	} ]; */
	$('#table').bootstrapTable({
		idField : "id",
		//columns: table_dataset,
		data : '',
		striped : true, //是否显示行间隔色
		pagination : true, //是否显示分页
		pageSize : 10, //每页的记录行数
		pageList : [ 10, 25, 50, 100 ], //可供选择的每页的行数
		search : true, //是否显示搜索
		showRefresh : true,

		toolbar : "#toolbar",
		icons : {
			paginationSwitchDown : 'glyphicon-collapse-down icon-chevron-down',
			paginationSwitchUp : 'glyphicon-collapse-up icon-chevron-up',
			refresh : 'glyphicon-refresh icon-refresh',
			toggle : 'glyphicon-list-alt icon-list-alt',
			columns : 'glyphicon-th icon-th',
			detailOpen : 'glyphicon-plus icon-plus',
			detailClose : 'glyphicon-minus icon-minus',
			"export" : 'glyphicon-export icon-share'
		},
		showExport : true,
		exportDataType : 'basic',
		exportTypes : [ 'json', 'xml', 'csv', 'txt', 'sql', 'excel' ]
	});
</script>
</html>
